import allure
from selenium.webdriver.common.by import By

from tests.litemall_sys.pages.basepage import BasePage
from tests.litemall_sys.pages.goods_list import GoodsList


class MainPage(BasePage):
    __ele = (By.XPATH, '//*[text()="商品管理"]')
    def goto_goods_list(self):
        with allure.step('点击商品管理'):
            self.find_click(*self.__ele)
        return GoodsList(self.driver)


